/******************************************************************
 * Created by: DO HOANG HAI                                       
 * Date of Creation: 25/Aug/2007
 * Date of last modification: 2st/Sep/2007
 * Status: Optimized and Finished
 *                                                                
 * Description: Provide method to obtain and manage data of type
 * Category which is stored in file item.xml
 ******************************************************************/

using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using Pbdms.DataAccess.DataProvider;

namespace Pbdms.BusinessLogic.DataController
{
    /// <summary>
    /// Provide method to access to Data of Category field.
    /// usage: first, create an instance and then call method getListOfCategoies()
    /// </summary>
    public class CategoryController
    {
        public CategoryController()
        {
        }
        /// <summary>
        /// create an instance of a Category
        /// </summary>
        /// <returns></returns>
        public static CategoryController  create(){
            return new CategoryController();
        }
        
        /// <summary>
        /// Get the list of available categories in the database.
        /// </summary>
        /// <returns>Arraylist of categories (string)</returns>
        public  ArrayList getListOfCategories()
        {
            return CategoryProvider.create().getListOfCategories();
        }
    }
}
